Release 10.1A: OpenEdge Development:
Programming Interfaces
Writing a ProDataSet to XML
The following code sample writes a ProDataSet to an XML file. Here is a snippet of the setup code showing the ProDataSet definition. Note the
NESTEDoptions.
Here is a code sample for a simple XML write from a static ProDataSet.
This example uses the
NESTEDoption, and here’s a snippet of the resulting XML demonstrating what it does. Note that thettEmprow associated with employee number 3 of department 400 is nested withinttDeptrow for department 400 and that the rows from thettFamtable associated with employee number 3 are included within thettEmpelement.
Remove the
NESTEDkeywords from the setup code and run it again. The resulting XML file now listed all rows from one table then all rows from the next table, and so on. Here’s a condensed version of the XML to highlight this point:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |